package com.jspgou.cms.dao;

import java.util.List;

import com.jspgou.common.hibernate3.Updater;
import com.jspgou.common.page.Pagination;
import com.jspgou.cms.entity.Role;

public interface RoleDao {
	public Pagination getPage(int pageNo, int pageSize);
	
	public Pagination getPage(Long websiteId,Long storeId,int pageNo, int pageSize);
	
	public List<Role> getList(Long websiteId,Long storeId);

	public Role findById(Long id);

	public Role save(Role bean);

	//*
	public Role update(Role bean);
	
	public Role updateByUpdater(Updater<Role> updater);

	public Role deleteById(Long id);
}